const baseURL='http://172.17.26.211:8089'
const http=(options)=>{
	return new Promise((resolve,reject)=>{
		uni.request({
			url:baseURL+options.url,
			method:options.method || 'get',
			header:{'content-type':options.header||'application/json'},
			data:options.data || {},
			success:function(res){
				resolve(res)
			},
			fail:function(err){
				reject(err);
			}
		})
	})
}
export default http;